package com.telit.firecommand.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.telit.firecommand.entity.CadPlotAction;
import com.telit.firecommand.entity.CadPlotAttachment;
import com.telit.firecommand.entity.CadPlotIcon;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;


@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value = "标绘详细", description = "标绘详细")
public class PlotDetailsDto {

    @ApiModelProperty(value = "标绘ID")
    private Long id;

    @ApiModelProperty(value = "火情ID")
    private String fireAlarmId;

    @ApiModelProperty(value = "用户ID")
    private Long userId;

    @ApiModelProperty(value = "用户名")
    private String userName;

    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    @ApiModelProperty(value = "操作")
    private CadPlotAction cadPlotAction;

    @ApiModelProperty(value = "图形")
    private CadPlotIcon cadPlotIcon;

    @ApiModelProperty(value = "附表")
    private CadPlotAttachment cadPlotAttachment;
    
}
